package com.ueboot.weishop.service.setting.impl;

import com.ueboot.weishop.entity.setting.CategoryEntity;
import com.ueboot.core.repository.BaseRepository;
import com.ueboot.weishop.repository.setting.CategoryRepository;
import com.ueboot.core.service.impl.BaseServiceImpl;
import com.ueboot.weishop.service.setting.CategoryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 商品分类服务实现
 */
@Slf4j
@Service
public class CategoryServiceImpl extends BaseServiceImpl<CategoryEntity> implements CategoryService{

    @Autowired
    private CategoryRepository categoryRepository;

    @Override
    protected BaseRepository getBaseRepository() {
        return categoryRepository;
    }

    @Override
    public CategoryEntity findById(Long id) {
        return categoryRepository.findById(id);
    }
}
